package org.nf.trading.controller.app.circle;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nf.trading.controller.BaseController;
import org.nf.trading.service.app.circle.CircleTypeService;
import org.nf.trading.vo.ResultVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequiredArgsConstructor
@RequestMapping("/api/circleType")
public class CircleTypeController extends BaseController {
    private final CircleTypeService circleTypeService;

    /**
     * 查询全部圈子类型
     * @return
     */
    @GetMapping
    public ResultVO getListCircles(){
        return success(circleTypeService);
    }
}
